package jlts.front.core;

import javax.swing.*;

/**
 * @ClassName Alert
 * @Description TODO
 * @Author Zxeao
 * @Date 2021/12/23 下午5:38
 * @Version V1.0
 */
public class Alert {

    public static void show(String msg){
        JOptionPane.showMessageDialog(null, msg);
    }

    public static boolean confim(String msg){
        int result=JOptionPane.showConfirmDialog(null, msg, "提示", JOptionPane.YES_NO_OPTION);
        if(result==JOptionPane.YES_OPTION){
            return true;
        }else{
            return false;
        }
    }
}
